package com.sdut.material.service;

import com.sdut.material.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdut.material.util.JSONResult;
import com.sdut.material.util.LayUITableResult;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yu
 * @since 2022-04-20
 */
public interface IUserService extends IService<User> {

    List<String> selectRoleByName(String username);

    List<String> selectPermissionByName(String username);

    LayUITableResult selectByPage(Long page, Long limit);

    void insert(User user, String roles);

    Map<String, Object> selectUserAndRoles(Integer userId);
    void update(User user,String roles);

    void deleteById(Integer userId);

    JSONResult selectUserInfo(String username);

    JSONResult updatePassword(String passwordFirst, String passwordSecond);

}
